package com.wilcom.system.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wilcom.system.domain.Repairrequest;
import com.wilcom.system.domain.Repairtask;
import com.wilcom.system.model.request.repairtask.AcceptRepairTaskRequest;
import com.wilcom.system.model.request.repairtask.CreateRepairTasks;
import com.wilcom.system.model.request.repairtask.GetAssignedTasksRequest;
import com.wilcom.system.model.request.repairtask.GetRepairTasksBy;
import com.wilcom.system.model.respone.RepairTaskDetail;
import org.springframework.data.domain.Page;

import java.util.List;

/**
* @author lishi
* @description 针对表【repairtask】的数据库操作Service
* @createDate 2024-06-22 02:34:05
*/
public interface RepairtaskService extends IService<Repairtask> {

    QueryWrapper<Repairrequest> getQueryWrapper(AcceptRepairTaskRequest postQueryRequest);

    QueryWrapper<Repairtask> getQueryWrapperTask(GetAssignedTasksRequest postQueryRequest);

    List<RepairTaskDetail> getAssignedTasksDetailByUserId(GetAssignedTasksRequest postQueryRequest);

    Boolean createRepairTasks(CreateRepairTasks createRequest);

    List<RepairTaskDetail> getUserRepairTaskBy(GetRepairTasksBy getRepairTasksBy);
}
